package main

import "fmt"

type Water struct {
	color string
	weight int
	is  *bool
}


func main() {
	w := Water{
		color:  "red",
		weight: 10,
		is:     nil,
	}

	b := true
	w.is = &b


	var w2 Water

	fmt.Println(w)
	fmt.Println(w2)

	w2 = w
	fmt.Println(w)
	fmt.Println(w2)

	var w3 *Water
	w.color = "blue"
	w3 = &w2

	fmt.Println(w)
	fmt.Println(w2)
	fmt.Println(w3)

	w3.color = "orange"
	fmt.Println(w)
	fmt.Println(w2)
	fmt.Println(w3)


}
